
package com.food.mall.dao;

import com.food.mall.entity.FoodMallShoppingCartItem;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FoodMallShoppingCartItemMapper {
    int deleteByPrimaryKey(Long cartItemId);

    int insert(FoodMallShoppingCartItem record);

    int insertSelective(FoodMallShoppingCartItem record);

    FoodMallShoppingCartItem selectByPrimaryKey(Long cartItemId);

    FoodMallShoppingCartItem selectByUserIdAndGoodsId(@Param("foodMallUserId") Long foodMallUserId, @Param("goodsId") Long goodsId);

    List<FoodMallShoppingCartItem> selectByUserId(@Param("foodMallUserId") Long foodMallUserId, @Param("number") int number);

    int selectCountByUserId(Long foodMallUserId);

    int updateByPrimaryKeySelective(FoodMallShoppingCartItem record);

    int updateByPrimaryKey(FoodMallShoppingCartItem record);

    int deleteBatch(List<Long> ids);
}